package com.ssd.api.payment;

import cn.hutool.core.bean.BeanUtil;
import com.ssd.api.payment.dto.response.TradingResDTO;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 交易单服务接口
 */
@FeignClient(name = "product-service", url = "http://localhost:9019/payment-service/inner/tradings")
public interface TradingApi {


     /**
     * 根据交易单号查询交易单的交易结果
     * @param tradingOrderNo 交易单号
     * @return 交易单的交易结果数据
     */
    @GetMapping("/findTradResultByTradingOrderNo")
    public TradingResDTO findTradResultByTradingOrderNo(@RequestParam("tradingOrderNo") Long tradingOrderNo) ;
}
